Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SYCL] Use pair of native::sin/cos for sincos under __FAST_MATH__ #10481

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

aelovikov-intel
Copy link
Contributor

No description provided.

@aelovikov-intel aelovikov-intel temporarily deployed to aws July 19, 2023 23:10 — with GitHub Actions Inactive
@aelovikov-intel aelovikov-intel temporarily deployed to aws July 20, 2023 00:00 — with GitHub Actions Inactive
@aelovikov-intel aelovikov-intel changed the title [WIP][SYCL] Use pair of native::sin/cos for sincos under __FAST_MATH__ [SYCL] Use pair of native::sin/cos for sincos under __FAST_MATH__ Aug 7, 2023
@aelovikov-intel
Copy link
Contributor Author

Performance measurements have been done in https://github.com/intel/llvm/actions/runs/5790366639/job/15693313789.

@aelovikov-intel aelovikov-intel marked this pull request as ready for review August 7, 2023 22:21
@aelovikov-intel aelovikov-intel requested a review from a team as a code owner August 7, 2023 22:21
@aelovikov-intel aelovikov-intel temporarily deployed to aws August 7, 2023 22:31 — with GitHub Actions Inactive
@aelovikov-intel aelovikov-intel temporarily deployed to aws August 7, 2023 23:36 — with GitHub Actions Inactive
@@ -734,8 +734,8 @@ std::enable_if_t<__FAST_MATH_GENFLOAT(T), T> sin(T x) __NOEXC {

// svgenfloat sincos (svgenfloat x, genfloatptr cosval)
template <typename T, typename T2>
std::enable_if_t<
detail::is_svgenfloat<T>::value && detail::is_genfloatptr<T2>::value, T>
std::enable_if_t<__FAST_MATH_GENFLOAT(T) && detail::is_genfloatptr<T2>::value,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure where __FAST_MATH_WITH_GENFLOAT comes from or what it is, but is there any chance that these two enable_if might both be true at the same time and then result in an ambiguous call? Do you need to ensure they are mutuallly exclusive?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tried to do it exactly the same as done for sin/cos/...

@dm-vodopyanov
Copy link
Contributor

This PR could affect #10198
@steffenlarsen, FYI

@aelovikov-intel aelovikov-intel merged commit bd81fc4 into intel:sycl Aug 8, 2023
16 checks passed
@aelovikov-intel aelovikov-intel deleted the sincos branch August 8, 2023 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants